<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class=""><a href="<?php echo url('index') ?>">信息列表</a></li>
        <li class=""><a href="<?php echo url('add') ?>">添加信息</a></li>
        <li class="layui-this">编辑信息</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form" action="<?php echo url('update') ?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">公司名称</label>
                    <div class="layui-input-block">
                        <select name="cid" lay-verify="required">
                            <?php foreach($company_list as $k=>$v): ?>
                                <option value="<?php echo $v['id']; ?>" <?php echo $v['id']==$rows['cid']?'selected':'' ?>><?php echo $v['name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">职位名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="jobname" value="<?php echo $rows['jobname'] ?>" required  lay-verify="required" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">LOGO</label>
                    <div class="layui-upload">
                        <input type="text" name="logo" value="<?php echo $rows['logo'] ?>" class="layui-input layui-input-inline">
                        <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                        <img class="layui-upload-img" src="<?php echo $rows['logo'] ?>" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                        仅允许上传jpg,png,gif,jpeg格式
                    </div>
                </div>
<!--                <div class="layui-form-item">-->
<!--                    <label class="layui-form-label">工作地址</label>-->
<!--                    <div class="layui-input-block">-->
<!--                        <input type="text" name="city" value="--><?php //echo $rows['city'] ?><!--" required  lay-verify="required" placeholder="" class="layui-input">-->
<!--                    </div>-->
<!--                </div>-->
             <!--   <div class="layui-form-item">
                    <label class="layui-form-label">工作城市</label>
                    <div class="layui-input-block">
                        <div class="layui-inline">
                            <select name="province" id="province" lay-verify="required" lay-search lay-filter="province">
                                <option value="<?php /*echo $rows['province'] */?>"><?php /*echo $rows['province'] */?></option>
                            </select>
                        </div>
                        <div class="layui-inline">
                            <select name="city" id="city" lay-verify="required" lay-search lay-filter="city">
                                <option value="<?php /*echo $rows['city'] */?>"><?php /*echo $rows['city'] */?></option>
                            </select>
                        </div>
                    </div>
                </div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">工作城市</label>
                    <div class="layui-input-block">
                        <input type="text" name="city" value="<?php echo $rows['city'] ?>" required  lay-verify="required" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">薪资待遇</label>
                    <div class="layui-input-block">
                        <input type="text" name="wage" value="<?php echo $rows['wage'] ?>" required  lay-verify="required" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">工作类型</label>
                    <div class="layui-input-block">
                        <select name="type" lay-verify="required">
                            <option value="0" <?php echo $rows['type']==0?'selected':'' ?>>兼职</option>
                            <option value="1" <?php echo $rows['type']==1?'selected':'' ?>>全职</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">工作时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="worktime" value="<?php echo $rows['worktime'] ?>" required  lay-verify="required" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">热招店铺</label>
                    <div class="layui-input-block">
                        <textarea id="editor" name="job_specification" class="layui-textarea" style="height: 200px;"><?php echo $rows['job_specification'] ?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">职位要求</label>
                    <div class="layui-input-block">
                        <textarea id="editor2" name="job_requirements" class="layui-textarea" style="height: 200px;"><?php echo $rows['job_requirements'] ?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">公众号信息</label>
                    <div class="layui-input-block">
                        <textarea id="editor3" name="job_data" class="layui-textarea" style="height: 200px;"><?php echo $rows['job_data'] ?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="is_show" value="1" title="显示" <?php if($rows['is_show']==1){echo 'checked="checked"';} ?>>
                        <input type="radio" name="is_show" value="0" title="隐藏" <?php if($rows['is_show']==0){echo 'checked="checked"';} ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">推荐</label>
                    <div class="layui-input-block">
                        <input type="radio" name="is_index" value="1" title="是" <?php if($rows['is_index']==1){echo 'checked="checked"';} ?>>
                        <input type="radio" name="is_index" value="0" title="否" <?php if($rows['is_index']==0){echo 'checked="checked"';} ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="text" name="sort" value="<?php echo $rows['sort'] ?>"   class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">发布时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="add_time" value="<?php echo $rows['add_time'] ?>" class="layui-input datetime">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">更新时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="update_time" value="<?php echo date('Y-m-d H:i:s') ?>" class="layui-input datetime">
                    </div>
                </div>
                <input type="hidden" name="jobid" value="<?php echo $rows['jobid'] ?>">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $this->fetch('public/script') ?>
<link href="_admin/city/layui/css/layui.css" rel="stylesheet" /><!--layui的样式-->
<!--<script src="_admin/city/js/jquery.min.js" type="text/javascript"></script>-->
<script src="_admin/city/js/area.js" type="text/javascript"></script>
<script src="_admin/city/js/select.js" type="text/javascript"></script>

